package com.printeverywhere.dto;

import java.util.Date;

import com.printeverywhere.util.DateUtil;

/**
 * MailServer entity.
 *
 * @author MyEclipse Persistence Tools
 */

public class MailServer implements java.io.Serializable {

	// Fields

	private Integer id;
	private User userByFromId;
	private User userByUserId;
	private Letters letters;
	private String body;
	private Boolean isRead;
	private Boolean flag;
	private Date createdOn = DateUtil.getTodaysDate();
	private String subject;
	private Date expiresDate;
	private Integer status=1;

	// Constructors

	/** default constructor */
	public MailServer() {
	}

	/** minimal constructor */
	public MailServer(Date createdOn, Date expiresDate) {
		this.createdOn = createdOn;
		this.expiresDate = expiresDate;
	}

	/** full constructor */
	public MailServer(User userByFromId, User userByUserId, Letters letters,
			String body, Boolean isRead, Boolean flag, Date createdOn,
			String subject, Date expiresDate, Integer status) {
		this.userByFromId = userByFromId;
		this.userByUserId = userByUserId;
		this.letters = letters;
		this.body = body;
		this.isRead = isRead;
		this.flag = flag;
		this.createdOn = createdOn;
		this.subject = subject;
		this.expiresDate = expiresDate;
		this.status = status;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public User getUserByFromId() {
		return this.userByFromId;
	}

	public void setUserByFromId(User userByFromId) {
		this.userByFromId = userByFromId;
	}

	public User getUserByUserId() {
		return this.userByUserId;
	}

	public void setUserByUserId(User d) {
		this.userByUserId = d;
	}

	public Letters getLetters() {
		return this.letters;
	}

	public void setLetters(Letters letters) {
		this.letters = letters;
	}

	public String getBody() {
		return this.body;
	}

	public void setBody(String body) {
		this.body = body;
	}

	public Boolean getIsRead() {
		return this.isRead;
	}

	public void setIsRead(Boolean isRead) {
		this.isRead = isRead;
	}

	public Boolean getFlag() {
		return this.flag;
	}

	public void setFlag(Boolean flag) {
		this.flag = flag;
	}

	public Date getCreatedOn() {
		return this.createdOn;
	}

	public void setCreatedOn(Date createdOn) {
		this.createdOn = createdOn;
	}

	public String getSubject() {
		return this.subject;
	}

	public void setSubject(String subject) {
		this.subject = subject;
	}

	public Date getExpiresDate() {
		return this.expiresDate;
	}

	public void setExpiresDate(Date expiresDate) {
		this.expiresDate = expiresDate;
	}

	public Integer getStatus() {
		return this.status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

}